﻿using System;
using System.Web.Mvc;
using System.Collections.Generic;
using MVCBootstrap.MongoDB;

namespace MVCBootstrap.Tests.MongoDB {

	public class TestResolver : IDependencyResolver {

		public Object GetService(Type serviceType) {
			if (serviceType == typeof(IConnection)) {
				return new Connection("mongodb://localhost", "mvcbootstraptest");
			}
			throw new NotImplementedException();
		}

		public IEnumerable<Object> GetServices(Type serviceType) {
			throw new NotImplementedException();
		}
	}
}
